package test

import com.alibaba.fastjson.JSONObject
import org.shoukaiseki.aqoeous.handler.AqoeousTriggerHandler
import org.shoukaiseki.aqoeous.model.CustomQO
import org.shoukaiseki.aqoeous.model.TriggerHandlerParam

/**
 *
 */
object TestNewTrigger {
    fun test001() {
        val aqoeousTriggerHandler: AqoeousTriggerHandler = object : AqoeousTriggerHandler {
            override fun listAddBefore(args: TriggerHandlerParam): JSONObject {
                return args.row
            }
        }

        var customQO=CustomQO()
        customQO.triggerHandler= object : AqoeousTriggerHandler{
            override fun  listAddBefore(args: TriggerHandlerParam): JSONObject {
                val row = args.row
                return row
            }
        }
    }
}